package cn.chenbonian.crowdfunding.mapper;

import cn.chenbonian.crowdfunding.entity.Admin;
import cn.chenbonian.crowdfunding.entity.AdminExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AdminMapper {

  List<Admin> selectAdminByKeyword(String keyword);

  int countByExample(AdminExample example);

  int deleteByExample(AdminExample example);

  int deleteByPrimaryKey(Integer id);

  int insert(Admin record);

  int insertSelective(Admin record);

  List<Admin> selectByExample(AdminExample example);

  Admin selectByPrimaryKey(Integer id);

  int updateByExampleSelective(
      @Param("record") Admin record, @Param("example") AdminExample example);

  int updateByExample(@Param("record") Admin record, @Param("example") AdminExample example);

  int updateByPrimaryKeySelective(Admin record);

  int updateByPrimaryKey(Admin record);

  void deleteRelationship(Integer adminId);

  void insertNewRelationship(
      @Param("adminId") Integer adminId, @Param("roleIdList") List<Integer> roleIdList);
}
